<div>
<div class="modal-header" >
    <div class="modal-title">
    楼类型
	    <span class="pull-right m-t-n-xs">
	    	<button class="btn btn-sm btn-info" ng-click="addinput()">添加</button>
	    </span>
    </div>
    
</div>
<div class="modal-body">
    <div class="text-center">
	        <table class="table">
	        	<tr ng-repeat="typedata in typeData">
	        		
	        		<td>
	        		  <span ng-if="tid!=typedata.id || a==0">{{typedata.type_name}}</span>
	        		  <span ng-if="tid==typedata.id && a==1"><input type="text" ng-model="oo.typename" placeholder="{{typedata.type_name}}"></span>
	        		</td>
	        		<td>
	        			<button class="btn btn-xs btn-success" ng-click="edit(typedata.id)" ng-show="tid!=typedata.id||b==0">
				         编辑
	        			</button>
	        			<button class="btn btn-xs btn-info" ng-click="editsave(typedata.id)" ng-show="tid==typedata.id && b==1" >
				         确定
	        			</button>
	        			<button class="btn btn-xs " ng-click="quxiao()" ng-show="tid==typedata.id && b==1">
				         取消
	        			</button>
	        			<button class="btn btn-xs btn-danger" ng-click="del(typedata.id)" data-placement="top" title="一旦点击删除，此楼类型将会被删除，其相关联的关系也会被删除">删除</button>
	        		</td>
	        		
	        	</tr>
	        	
	        	<tr ng-show="oo.addinput==true">
	        		<td>楼类型名称</td>
	        		<td><input type="text" placeholder="输入楼类型名称" ng-model="oo.create_types"></td>	
	        		<td><button class="btn btn-xs btn-info" ng-click="addsave()" data-placement="top" title="可多个创建，以逗号隔开 ">确定</button></td>        		
	        	</tr>	        	
	        </table>
	       
	        
	   
	</div>
</div>
<div class="modal-footer">                  
    <button class="btn btn-default" ng-click="cancel()">关闭</button>
    <!-- <button class="btn btn-info" ng-click="ok()">确定</button> -->
</div>
</div>